package ua.edu.test.builder;

import ua.edu.test.AllActions;

/**
 * Created by Max on 18.07.2014.
 */
public class BdmChooser {

	private String cardNumber = null;                   // все 16 цифр номера карты, т.к. для укрексимбанка нужны первые и последние 4 цифры
	private int paySum = 0;                          //сумма перевода на карту или телефон
	private String transferNumber = null;               //номер карты или телефона получателя
	private String accessCode = null;                   //код доступа, необходим для pumb, aval, kredo, marfin, profin
	private TransferCurrency transferCurrency = null;   //валюта перевода, нужно указывать для privat и unicredit
	private long accountNumber = 0;                  //номер счета aval
	private long transactionNumber = 0;              //номер транзации, нужен для aval
	private String cardPseudonym = null;                //псевдоним карты, нужен для eximbank


	public BankDataModel getBDM(String action){
		if (action.equals(AllActions.REPLENISH_MOB_TEL)){
			return new BankDataModel(cardNumber, paySum, transferNumber);

		}
		return null;
	}


	public String getCardNumber() {
		return cardNumber;
	}

	public void setCardNumber(String cardNumber) {
		this.cardNumber = cardNumber;
	}

	public int getPaySum() {
		return paySum;
	}

	public void setPaySum(int paySum) {
		this.paySum = paySum;
	}

	public String getTransferNumber() {
		return transferNumber;
	}

	public void setTransferNumber(String transferNumber) {
		this.transferNumber = transferNumber;
	}

	public String getAccessCode() {
		return accessCode;
	}

	public void setAccessCode(String accessCode) {
		this.accessCode = accessCode;
	}

	public TransferCurrency getTransferCurrency() {
		return transferCurrency;
	}

	public void setTransferCurrency(TransferCurrency transferCurrency) {
		this.transferCurrency = transferCurrency;
	}

	public long getAccountNumber() {
		return accountNumber;
	}

	public void setAccountNumber(long accountNumber) {
		this.accountNumber = accountNumber;
	}

	public long getTransactionNumber() {
		return transactionNumber;
	}

	public void setTransactionNumber(long transactionNumber) {
		this.transactionNumber = transactionNumber;
	}

	public String getCardPseudonym() {
		return cardPseudonym;
	}

	public void setCardPseudonym(String cardPseudonym) {
		this.cardPseudonym = cardPseudonym;
	}
}
